package com.team.appinfo.service;

import com.github.pagehelper.PageInfo;
import com.team.appinfo.entity.AppInfo;
import com.team.appinfo.util.AppinfoDicontion;


public interface AppInfoService {
    //分页查询
    PageInfo<AppInfo> searchAppInfo(AppinfoDicontion appinfoDicontion);

    //新增
    int addAppInfo(AppInfo appInfo);

    //根据ID查询
    AppInfo getAppInfoById(Long id);

    //保存
    int updateAppInfo(AppInfo appInfo);

    //删除
    void delAppInfo(Long id);


    //运营分页查询
    PageInfo<AppInfo> getNoPassAppInfo(AppinfoDicontion appinfoDicontion);


    //根据appId查询当前数据
    AppInfo getModernAppInfo(Long id);


    //审核状态
    int approvalStatus(Long id,Long status);


    //根据AppId和Status查询
    int updateAppInfoState(Long appId,Long status);
}
